package com.heiTie.heiTie.common;

public enum DefaultCodeEnum {

    SERVER_EXCEPTION(500, "服务器异常"),
    SUCCESS(0, "请求成功！"),
    ERROR_PARAMS(-1, "参数异常！"),
    ERROR(-99, "请求处理异常！"),
    JDBC_CONNECT_ERROR(-3, "参数错误，无法连接！"),
    SERVER_ERROR(-4, "数据库配置错误！");

    private final int code;
    private final String message;

    DefaultCodeEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
